home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Aventura / Squeaky.swf / scripts / frame_290 / PlaceObject2_268_43 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2005-08-04  |  468 b   |  28 lines

  1. onClipEvent(enterFrame){
  2.    if(stop != "yes")
  3.    {
  4.       if(xmov > 0)
  5.       {
  6.          if(this._x < xhome + distance)
  7.          {
  8.             this._x += xmov;
  9.          }
  10.          else
  11.          {
  12.             xmov = - xmov;
  13.          }
  14.       }
  15.       else if(xmov < 0)
  16.       {
  17.          if(this._x > xhome - distance)
  18.          {
  19.             this._x += xmov;
  20.          }
  21.          else
  22.          {
  23.             xmov = - xmov;
  24.          }
  25.       }
  26.    }
  27. }
  28.